#!/usr/bin/env node

//const cp = require('child_process');

//console.log('I am father process. PID:', process.pid);

//cp.execFile('cat', ['03-child.js'], (error, out, err) => {
  //if (error) {
    //console.error(err.toString('utf8'))
  //} else {
    //console.log(out.toString('utf8'))
//}})


const cp = require('child_process');

console.log('I am father process. PID:', process.pid);

cp.execFile('./03-child.js', (err, stdout) => {
    console.log(stdout);
});
